package com.duan.laugh.email.api.pojo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author duanjw
 * @date 2018/1/22 17:24
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "邮件参数对象", description = "邮件参数对象，包括：请求流水ID、邮件处理类型、公共回传参数、邮件接收邮箱、邮件主题、邮件模板变量、邮件模板ID")
public class MailRequest implements Serializable {

    @ApiModelProperty(value = "请求流水ID", example = "123123123213123213213", required = true)
    private String requestFlowId;

    @ApiModelProperty(value = "公共回传参数", example = "123456")
    private String extend;

    @ApiModelProperty(value = "接收邮箱号码，可以是多个，用半角,号分割", example = "554343346@qq.com,948769315@qq.com", required = true)
    private String rec;

    @ApiModelProperty(value = "邮件主题", example = "测试邮件", required = true)
    private String subject;

    @ApiModelProperty(value = "邮件模板内参数，格式为json字符串", example = "{\"id\":\"123\"}")
    private String param;

    @ApiModelProperty(value = "邮件内容", example = "我是邮件内容")
    private String content;

    @ApiModelProperty(value = "邮件模板ID", example = "mailTemplate", required = true)
    private String templateCode;

    @ApiModelProperty(value = "租户id", example = "123", required = true)
    private String tenantId;
}
